package ProducerConsumer.WaitNotify;

public class Producer implements Runnable {
    private  MyBlockQueue storage;

    public Producer(MyBlockQueue storage) {
        this.storage = storage;
    }

    @Override
    public void run() {
        for (int i = 0; i < 100; i++) {
            try {
                storage.put();
            } catch (InterruptedException e) {
                e.printStackTrace();
            }
        }
    }
}
